<?php
namespace Home\Controller;
use Think\Controller;
use Mcit\Page;
/*
 *前台首页控制器
 */
class IndexController extends Controller
{
    
	protected function _initialize()
    {
		 header('Content-Type:text/html; charset=utf-8');
	}
	//首页显示
    public function index()
    {
		$this->display();
	}
    public function book(){
        $this->display();
    }
	//验证码
	public function verify()
	{
		$Verify = new \Think\Verify();
		$Verify->useImgBg = flase;// 开启验证码背景图片功能 随机使用 ThinkPHP/Library/Think/Verify/bgs 目录下面的图片
		$Verify->codeSet = '0123456789';
		$Verify->fontSize = 35;
		$Verify->length   = 4; 
		$Verify->entry();
	}

}